<!doctype html>
<html lang="zh">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="../vendor/bootstrap/dist/css/bootstrap.min.css">
    <link rel="stylesheet" href="../vendor/bootstrap-icons/font/bootstrap-icons.css">
    <title>bs</title>

<body>

<div class="container p-2">
    <div class="row g-2">
        <div class="col-md-6">
            <h3>.qtab1</h3>
            <div class="qtab1"></div>

        </div>
        <div class="col-md-6">
            <h3>.qtab2</h3>
            <div class="qtab2"></div>
        </div>
        <div class="col-md-6">
            <div class="d-flex gap-2 flex-wrap">
                <button class="btn btn-success" data-qt-tab='{"title":"新的tab页面一","url":"welcome.html?a=1"}'
                        data-qt-target=".qtab1">添加tab(.qtab1)
                </button>
                <button class="btn btn-success"
                        data-qt-tab='{"title":"新的tab页面二","url":"welcome.html?a=2","close":false}'
                        data-qt-target=".qtab1">添加不可关闭tab(.qtab1)
                </button>
                <button class="btn btn-success" data-qt-tab='{"title":"新的tab页面一","url":"welcome.html?a=1"}'
                        data-qt-target=".qtab2">添加tab(.qtab2)
                </button>
                <button class="btn btn-success"
                        data-qt-tab='{"title":"新的tab页面二","url":"welcome.html?a=2","close":false}'
                        data-qt-target=".qtab2">添加不可关闭tab(.qtab2)
                </button>
            </div>
        </div>
    </div>
</div>


<script src="../vendor/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
<script src="../vendor/jquery/dist/jquery.min.js"></script>
<script src="../vendor/bootstrap-quicktab/dist/js/bootstrap-quicktab.min.js"></script>

<script>
    $(function () {

        new Quicktab({
            selector: '.qtab1'
        });

        new Quicktab({
            selector: '.qtab2'
        });

    })


</script>

</body>
</html>
